#include <stdio.h>
#include <stdlib.h>


int main() {

	int i;
    int count = 0;
    char * vertexArray;
	const char* fileName = "..\\VerticesFile.txt";
    int ch, size;

    FILE *file;
	file = fopen(fileName, "r");

	while ((ch = fgetc(file) != EOF)) {
       count++;
	}

    size = count*2;

    vertexArray = (char*) calloc(size, sizeof(char));
   
	rewind(file);

	for(i=0; i<size; i++) {
       fscanf(file, "%c ", &vertexArray[i]);
	}

	for(i=0; i<size; i++) {
       fprintf(stderr, "%c\n", vertexArray[i]);
	}

    fclose(file);

	return 0;
}